/* 容器布局 */
.container {
  display: flex;
  height: 100vh;
  background-color: #63b3fd49;
  /* 默认背景色：柔和的紫色 */
}

/* 侧边栏样式 */
.sidebar {
  width: 200px;
  padding: 20px;
  background-color: #8bcaeec7;
  /* 默认背景色：浅紫色 */
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 备用主题 */

/* 容器的备用背景色 */
.container.alternate-theme {
  background-color: #e4e2de;
  /* 备用背景色：柔和的黄色 */
}

/* 侧边栏的备用背景色 */
.sidebar.alternate-theme {
  background-color: #f7f4f4;
  /* 备用背景色：浅橙色 */
}

/* 聊天容器样式 */
.chat-container {
  flex: 1;
  padding: 20px;
  background-color: #e9edf525;
  /* 聊天窗口背景色 */
  display: flex;
  flex-direction: column;
}

/* 聊天气泡的通用样式 */
.chat-bubble {
  max-width: 70%;
  padding: 12px 18px;
  /* 增加内边距 */
  border-radius: 20px;
  /* 增加圆角 */
  margin-bottom: 12px;
  /* 增加底部间距 */
  word-wrap: break-word;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* 添加阴影 */
  font-size: 16px;
  /* 增加字体大小 */
  line-height: 1.5;
  /* 增加行高 */
}

/* 用户消息气泡 */
.user-bubble {
  background-color: #d1eaff;
  /* 柔和的蓝色 */
  align-self: flex-end;
  border-top-right-radius: 0;
}

/* 助手消息气泡 */
.assistant-bubble {
  background-color: #ffffff;
  /* 白色 */
  align-self: flex-start;
  border-top-left-radius: 0;
}

/* 翻译按钮样式 */
.translate-action {
  margin-top: 5px;
}

/* 翻译后的文本样式 */
.translated-text {
  margin-top: 5px;
  padding: 8px 12px;
  background-color: #f0f4f8;
  /* 浅灰蓝色背景 */
  border-radius: 10px;
  font-size: 14px;
  color: #333333;
}

/* 调整聊天底部布局 */
.chat-footer {
  display: flex;
  align-items: center;
}

.footer-actions {
  display: flex;
  gap: 8px;
  margin-left: 16px;
}

/* 输入框样式 */
.t-chat-input__inner {
  border: 2px solid #63b3fd;
  /* 自定义边框颜色 */
  border-radius: 10px;
  /* 增加圆角 */
  padding: 10px 15px;
  /* 增加内边距 */
  font-size: 16px;
  /* 增加字体大小 */
  background-color: #ffffff;
  /* 输入框背景色 */
  height: 100%;
}

.t-chat-input__inner:focus {
  border-color: #bfadf0;
  /* 聚焦时边框颜色 */
  box-shadow: 0 0 5px rgba(176, 160, 240, 0.5);
  /* 聚焦时阴影 */
}

.custom-action-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.custom-action-buttons .t-button {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.custom-action-buttons .t-button:hover {
  background-color: #e0e0e0;
}

.custom-action-buttons .t-button-active {
  background-color: #4caf50;
  color: white;
}

/* 分享弹窗样式 */
.t-dialog .t-button-primary {
  background-color: #4caf50;
  color: white;
  border-radius: 8px;
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.chat-input {
  position: fixed;
  bottom: 20px;
  left: 260px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  z-index: 1000;
}

.custom-input {
  width: 100%;
  max-width: 500px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.send-button {
  padding: 8px 12px;
  border-radius: 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.send-button:hover {
  background-color: #45a049;
}


.custom-action-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f3f3f3;
}

.custom-action-buttons{
  border: transparent;
  padding-top: 0px;
}

.delete-button {
  margin-top: 10px;
  width: 100%;
}

.custom-action-buttons .t-button{
  padding-top: 4px;
}

.delete-icon-button,
.quote-icon-button,
.share-icon-button{
  min-width: 44px;
  padding: 0;
  border: transparent;
  color: rgba(0, 0, 0, 0.9);
  background-color: #f3f3f3;
}

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-result-list {
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  cursor: pointer;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: #f5f5f5;
}

.search-result-text mark {
  background-color: #ffeb3b;
  /* 设置高亮颜色，可根据 UI 风格调整 */
}

.search-result-info {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.t-switch {
  margin-bottom: 20px;
}
